package com.ruoyi.project.cms.type.service;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.cms.type.mapper.RemoveTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RemoveTypeServiceImpl implements IRemoveTypeService {
    //声明mapper属性
    @Autowired
    private RemoveTypeMapper removeTypeMapper;
    /**
     * 用主键批量删除 将主键用逗号分隔
     * @param ids
     * @return
     */
    @Override
    public int deletePostByIds(String ids) {
        Long[] typeIds = Convert.toLongArray(ids);
      int i=  removeTypeMapper.deletePostByIds(typeIds);
        return i;

    }
}
